'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx ,service } = this;
    //ctx.body = service.home.index();
    await ctx.render("home.html");
  }

  async findHot() {
    const { ctx,service } = this;
    ctx.body = service.home.findHot();
  }
  async findHeart() {
    const { ctx,service } = this;
    ctx.body = service.home.findHeart();
  }
}

module.exports = HomeController;
